package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * 护理项目Mapper接口
 */
@Mapper
public interface NursingProjectMapper {

    Page<NursingProjectVo> getByPage(String name, Integer status);

    void insert(NursingProject nursingProject);

    NursingProject selectById(Long id);

    void update(NursingProject nursingProject);

    @Update("update nursing_project set status= #{status} where id = #{id}")
    void updatestatus(Long id, Integer status);

    void delete(Long id);

    List<NursingProjectVo> getAll();
}